import {
	createStore
} from 'vuex'
import actions from "./actions"
import getters from "./getters"
import mutations from "./mutations"
const state = {
	//结算的数据
	finalList: [],
	//购物车数据
	shopCart: [],
	user: {
		isLogin: window.localStorage.getItem('token') ? true : false
	},
	product: {
		//商品分类数据
		list: [],
		//推荐数据 
		recommend: []
	}
}
export default createStore({
	state,
	getters,
	mutations,
	actions,
	modules: {
	}
})
